package top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.service;

import top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.model.entity.UserOauth2Entity;

/**
 * @author yfq
 * @date 2024/6/11 13:48
 * @description 三方授权服务
 */
public interface IOauth2Service {
    /**
     * 处理授权码
     *
     * @param code ...
     * @return oauth2返回的标准用户信息
     */
    UserOauth2Entity handleAuthenticationCode(String code);

    /**
     * 获取授权地址
     *
     * @return ...
     */
    String getOauth2Url();
}
